package com.netease.service;

import com.netease.entity.Word;
import com.netease.pojo.WordSegmentLog;
import com.netease.utils.PagedGridResult;
import com.netease.vo.WordSegmentLogVO;
import com.netease.vo.WordSegmentReferenceVO;

import java.util.List;

/**
 * @projectName: modeling-dev
 * @package: com.netease.impl
 * @className: WordSegmentLogService
 * @author: aochong
 * @description: 分词日志服务接口
 * @date: 2023/4/3 19:49
 * @version: 1.0
 */
public interface WordSegmentLogService {
    /**
     * @param word:
     * @return void
     * @author aochong
     * @description 创建词根分词日志
     * @date 2023/3/31 16:28
     */
    public void createWordSegmentLog(Word word);

    /**
     * @param wordSegmentLog:
     * @return boolean
     * @author aochong
     * @description 更新WordSegmentLog
     * @date 2023/4/3 20:05
     */
    public void updateWordSegmentLog(WordSegmentLog wordSegmentLog);

    /**
     * @param wordSegmentLog:
     * @return WordSegmentLog
     * @author aochong
     * @description 查询单条分词日志
     * @date 2023/4/3 20:21
     */
    public List<WordSegmentLogVO> queryWordSegmentLog(WordSegmentLog wordSegmentLog);

    /**
     * @param wordSegmentLog:
     * @return WordSegmentLog
     * @author aochong
     * @description 查询分词日志是否存在
     * @date 2023/4/3 20:22
     */
    public boolean queryWordSegmentLogIsExists(WordSegmentLog wordSegmentLog);

    /**
     * @param page: 页数
     * @param pageSize: 每页行数
     * @return PagedGridResult
     * @author aochong
     * @description 分页查询分词日志
     * @date 2023/4/3 20:57
     */
    public PagedGridResult queryPagedWordSegmentLog(Integer page,Integer pageSize);

    /**
     * @param id:
     * @return boolean
     * @author aochong
     * @description 根据ID删除分词日志
     * @date 2023/4/3 20:23
     */
     public boolean deleteWordSegmentLog(int id);

     /**
      * @param date:
      * @return List<WordSegmentLogVO>
      * @author aochong
      * @description 查询分词参考
      * @date 2023/4/20 11:28
      */
     public List<WordSegmentReferenceVO> queryWordSgmntRfrnc(String date);
}
